﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Xfs
{
    [XfsObjectSystem]
    public class XfsUnitAwakeSystem : XfsAwakeSystem<XfsUnit>
    {
        public override void Awake(XfsUnit self)
        {

        }
    }

    [XfsObjectSystem]
    public class XfsUnitStartSystem : XfsStartSystem<XfsUnit>
    {
        public override void Start(XfsUnit self)
        {

        }
    }

    [XfsObjectSystem]
    public class XfsUnitUpdateSystem : XfsUpdateSystem<XfsUnit>
    {
        public override void Update(XfsUnit self)
        {

        }
    }



    public static class XfsUnitHelper
    {
        public static void SetBaseProperty(XfsUnit self)
        {

            //roler._BaseProperty.GetProperty(roler.Tribe);
            //self.MaxHp = 10 * roler._BaseProperty.Stamina * (int)roler.RoleCLass;
            //self.MaxMp = 10 * roler._BaseProperty.Level * (int)roler.RoleCLass;
            //self.Bp = roler._BaseProperty.Brains * (int)roler.RoleCLass;
            //self.Ap = roler._BaseProperty.Power * (int)roler.RoleCLass;

            //self.Hr = (roler._BaseProperty.Power + roler._BaseProperty.Agility) * (int)roler.RoleCLass;
            //self.Cr = (roler._BaseProperty.Power + roler._BaseProperty.Agility) * (int)roler.RoleCLass;
            //self.Sp = (roler._BaseProperty.Power + roler._BaseProperty.Agility) * (int)roler.RoleCLass;
            //self.Dp = (roler._BaseProperty.Power + roler._BaseProperty.Agility) * (int)roler.RoleCLass;

        }


    }
}
